package com.augurit.gzcgwsp.csshlj.service;

import java.io.File;
import java.io.InputStream;
import java.util.Map;

import org.springside.modules.orm.Page;

import com.augurit.gzcgwsp.csshlj.entity.Person;

/*
 * 城市生活垃圾处置专业人员servicde
 */
public interface IPersonService {

	Page toListPerson(Page page,Long id);

	/**
	 * 新增或修改
	 * @param map
	 * @param jlfile
	 * @param xlfile
	 * @return
	 */
	boolean saveOrUpdatePerson(Map map,File jlfile,File xlfile);

	Person getEntity(Long personId);

	void updateEntity(String contextPath, Person person, InputStream jlfile,
			InputStream xlfile,String xlfileName,String jlfileName);

	/**
	 * 删除人员
	 * @param personId
	 * @return
	 */
	boolean deleteById(Long personId);
	
}
